﻿using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyCompanyName.AbpZeroTemplate.Prm.Inquiry
{
    public class Inquiry : FullAuditedEntity<int>
    {
        /// <summary>
        ///项目流水号
        /// </summary>
        public virtual string ProjectNo { get; set; }

        /// <summary>
        /// 日期
        /// </summary>
        public virtual DateTime CreateOn { get; set; }

        /// <summary>
        /// 项目名称
        /// </summary>
        public virtual string ProjectName { get; set; }

        /// <summary>
        /// 项目类型
        /// </summary>
        public virtual string ProjectType { get; set; }

        /// <summary>
        /// 九洲代号
        /// </summary>
        public virtual string InquiryNo { get; set; }

        /// <summary>
        /// 客户代号
        /// </summary>
        public virtual string CustomerNo { get; set; }


        /// <summary>
        /// 目标化合物
        /// </summary>
        public virtual int SubId { get; set; }

        /// <summary>
        /// 项目评估负责人
        /// </summary>
        public virtual int AdminId { get; set; }

        #region 项目背景情况
        /// <summary>
        /// 客户名称
        /// </summary>
        public virtual string CustomerName { get; set; }

        /// <summary>
        /// 产品
        /// </summary>
        public virtual string ProductName { get; set; }

        /// <summary>
        /// 规格要求：是否自己研发
        /// </summary>
        public virtual bool IsDeveSpecial { get; set; }


        /// <summary>
        /// 工艺路线：是否自己研发
        /// </summary>
        public virtual string IsDeveSynth { get; set; }

        /// <summary>
        /// 临床阶段
        /// </summary>
        public virtual string Phase { get; set; }

        /// <summary>
        /// 治疗领域
        /// </summary>
        public virtual string Indication { get; set; }

        /// <summary>
        /// 是否安全品
        /// </summary>
        public virtual bool IsSafe { get; set; }

        /// <summary>
        /// 尺寸询单量
        /// </summary>
        public virtual string NeedCurNum { get; set; }

        /// <summary>
        /// 未来峰值
        /// </summary>
        public virtual string NeedMaxNum { get; set; }


        /// <summary>
        /// 用途
        /// </summary>
        public virtual string Purpose { get; set; }

        /// <summary>
        /// 要求交期
        /// </summary>
        public virtual DateTime TargetDate { get; set; }
        /// <summary>
        /// 附件(json)
        /// </summary>
        public virtual string Files { get; set; }

        public virtual WeekReportEnum WeekReport { get; set; }

        #endregion


        /// <summary>
        /// 工艺评估附件(json)
        /// </summary>
        public virtual string SynthFiles { get; set; }


        /// <summary>
        /// 是否归档
        /// </summary>
        public virtual InquiryStatus Status { get; set; }
    }

    public class InquiryReply : FullAuditedEntity<int>
    {
        // <summary>
        /// 询盘Id
        /// </summary>
        public int InquiryId { get; set; }

        /// <summary>
        /// 评论正文
        /// </summary>
        public string Content { get; set; }

        ///// <summary>
        ///// 提醒消息（邮件）收件人,   多个用,号分隔
        ///// 可以识别“所有任务成员”，“所有项目成员”这二个特殊的收件人
        ///// </summary>
        //public virtual string MailAddress { get; set; }

    }


    public enum WeekReportEnum
    {
        双周报 = 100,
        每周报 = 200
    }

    public enum InquiryStatus
    {
        待工艺评估 = 100,
        工艺已评估 = 150,
        待客户反馈 = 200,
        下达生成任务 = 400,
        结束 = 300,
    }
}
